package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 招待申请对象 erp_enterain_record
 *
 * @author cxl
 * @date 2024-06-13
 */
@TableName ("erp_enterain_record")
@ApiModel (value = "招待申请", description = "招待申请")
@Data
@Accessors(chain = true)
public class EnterainRecordEntity{

         /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 类型(客户0 供应商1) */
        @ApiModelProperty ("类型(客户0 供应商1)")
        @TableField ("type")
        @Excel (name = "类型(客户0 供应商1)")
        private Integer type;

        /** 客户/供应商id */
        @ApiModelProperty ("客户/供应商id")
        @TableField ("relation_id")
        @Excel (name = "客户/供应商id")
        private String relationId;

        /** 人数 */
        @ApiModelProperty ("人数")
        @TableField ("num")
        @Excel (name = "人数")
        private Integer num;

        /** 申请事由 */
        @ApiModelProperty ("申请事由")
        @TableField ("reason")
        @Excel (name = "申请事由")
        private String reason;

        /** 地点 */
        @ApiModelProperty ("地点")
        @TableField ("address")
        @Excel (name = "地点")
        private String address;

        /** 招待标准 */
        @ApiModelProperty ("招待标准")
        @TableField ("standard")
        @Excel (name = "招待标准")
        private String standard;

        /** 部门id */
        @ApiModelProperty ("部门id")
        @TableField ("dept_id")
        @Excel (name = "部门id")
        private String deptId;

        /** 子公司id */
        @ApiModelProperty ("子公司id")
        @TableField ("company_id")
        @Excel (name = "子公司id")
        private String companyId;

        /** 申请人 */
        @ApiModelProperty ("申请人")
        @TableField ("user_id")
        @Excel (name = "申请人")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField (value = "create_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss")
        @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;


        @ApiModelProperty ("更新时间")
        @TableField ("is_used")
        @Excel (name = "更新时间")
        private Integer isUsed;

        /** 状态 */
        @ApiModelProperty ("状态")
        @TableField ("state")
        @Excel (name = "状态")
        private String state;

        /** 流程实例ID */
        @ApiModelProperty ("流程实例ID")
        @TableField ("instance_id")
        @Excel (name = "流程实例ID")
        private String instanceId;


}
